package org.egovframeex.mybatis.sample.repository;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.egovframeex.mybatis.sample.model.Employee;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class EmployeeRepositoryImpl implements EmployeeRepository{
	
	private static final Logger logger = LoggerFactory.getLogger(EmployeeRepositoryImpl.class);

	@Autowired
	private SqlSession sqlSession;
	
	public List<Employee> retrieveEmployeeList(Employee employee) {

		List<Employee> employeeList = null;
		logger.info("retrieveEmployeeList Start !");
		employeeList = sqlSession.selectList("Employee.retrieveEmployeeList");
		logger.info("retrieveEmployeeList Start !");
		return employeeList;
	}

}
